package org.jeecg.modules.demo.homepage.mapper;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.baseordercommodity.entity.BaseOrderCommodity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface HomePageMapper {

    List<Map<String, Object>> listOrderSale(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);

    List<Map<String, Object>> listServeCommission(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);

    List<Map<String, Object>> listOrderCount(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);

    List<Map<String, Object>> listMemberCount(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);

    List<Map<String, Object>> listStockMemberCount(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);

    List<Map<String, Object>> listStockCount(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);

    List<Map<String, Object>> listBalanceCount(@Param("storeId") String storeId, @Param("changeCode") String changeCode, @Param("start") String start, @Param("end") String end);


    List<Map> listOrderProject(@Param("storeId") String storeId, @Param("name") String name, @Param("phone") String phone, @Param("projectName") String projectName, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);

    int countOrderProject(@Param("storeId") String storeId, @Param("name") String name, @Param("phone") String phone, @Param("projectName") String projectName);

    List<Map> listMember(@Param("storeId") String storeId, @Param("name") String name, @Param("phone") String phone, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);

    int countMember(@Param("storeId") String storeId, @Param("name") String name, @Param("phone") String phone);

    List<BaseOrderCommodity> listOrderCommodity(@Param("storeId") String storeId, @Param("start") String start, @Param("end") String end);
}
